package com.example.computer_exam_training_sys.service;

import com.example.computer_exam_training_sys.entity.TopicCommentInfo;

import java.util.List;
import java.util.Map;

public interface TopicCommentService {
    int addComment(TopicCommentInfo comment);
    int deleteComment(Integer commentId);
    Map<String, Object> getCommentsByTopicId(Integer topicId, Integer page, Integer size);
    List<Map<String, Object>> getCommentsTitlesById(List<Integer> topicId);
    Map<String, Object> getCommentsByUserId(Integer userId, Integer page, Integer size);
}